// 卵生动物类
class Oviparous extends Animal implements Swim,Climb,LayEgg{

    public Oviparous() {
    }

    public Oviparous(String animalType, int age) {
        super(animalType, age);
    }

    @Override
    public void eat(String s) {
        System.out.println(getAge() + "岁的" + getAnimalType() + "吃" + s);
    }

    @Override
    public void swim() {
        System.out.println(getAge() + "岁的" +getAnimalType() + "游泳");
    }

    @Override
    public void climb() {
        System.out.println(getAge() + "岁的" + getAnimalType() +"在地上爬行");
    }

    @Override
    public void layEgg() {
        System.out.println(getAge() + "岁的" + getAnimalType() +"下了蛋");
    }
}